<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>

<title>결제창</title>
</head>
<body>
<s:form action="order" method="post" name="orderform">
 <table border=0 cellspacing=1 cellpadding=0 width=80%>
		<tr>
			<p align="center"><b><font size=2>주문 상세내역</font></b></p>
		</tr>
		
		<tr align=center height=20>
		<td style="font-family: Tahoma; font-size: 8pt; font-weight: bold;">사진</td>
		<td style="font-family: Tahoma; font-size: 8pt; font-weight: bold;">상품명</td>
		<td style="font-family: Tahoma; font-size: 8pt; font-weight: bold;">수량</td>
		<td style="font-family: Tahoma; font-size: 8pt; font-weight: bold;">색깔</td>
		<td style="font-family: Tahoma; font-size: 8pt; font-weight: bold;">사이즈</td>
		<td style="font-family: Tahoma; font-size: 8pt; font-weight: bold;">가격</td>
		</tr>
		
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
		
		<s:iterator value="basketlist" status="stat">
		
		<tr align=center height=20>
		<td style="font-family: Tahoma; font-size: 7pt;">
	     <img src="./image/<s:property value="%{basketlist.get(#stat.index).BOARD_FILE}"/>.split(",")[0]" 
				width=50 height=50>
		</td>
		<td style="font-family: Tahoma; font-size: 8pt;">
			<s:property value="%{basketlist.get(#stat.index).CATE_TYPE}"/>
		</td>
		<td style="font-family: Tahoma; font-size: 8pt;">
			<s:property value="%{basketlist.get(#stat.index).AMOUNT}"/>
		</td>
		<td style="font-family: Tahoma; font-size: 8pt;">
			<s:property value="%{basketlist.get(#stat.index).PRODUCT_COLOR}"/>
		</td>
		<td style="font-family: Tahoma; font-size: 8pt;">
			<s:property value="%{basketlist.get(#stat.index).PRODUCT_SIZE}"/>
		</td>
		<td style="font-family: Tahoma; font-size: 8pt;">
			<s:property value="%{basketlist.get(#stat.index).PRICE}"/>
		</td>
		</tr>
		
     </s:iterator>
     
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
	</table>
	
	<table width=80% border=0 cellpadding="0" cellspacing="1">
		<tr>
			<td height=10>
			<td>
		</tr>
		<tr>
			<td height=10>
			<td>
		</tr>
		<tr>
			<td><b><font size=2>주문자 정보</font></b></td>
		</tr>
		
		 <s:iterator value="senderlist" status="stat">
		 
				<tr>
			<td style="font-family: Tahoma; font-size: 8pt;" width=80 height=24
				bgcolor="f7f7f7">이름</td>
			<td width=320 height=24>
				<font size=2><s:property value="%{senderlist.get(#stat.index).SHOP_NAME}"/></font>
			</td>
		</tr>
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
		<tr>
			<td style="font-family: Tahoma; font-size: 8pt;" height=24
				bgcolor="f7f7f7">휴대폰</td>
			<td width=320 height=24>
				<font size=2><s:property value="%{senderlist.get(#stat.index).SHOP_PHON}"/></font>
			</td>
		</tr>
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
		<tr>
			<td style="font-family: Tahoma; font-size: 8pt;" height=24
				bgcolor="f7f7f7">이메일 주소</td>
			<td width=320 height=24>
				<font size=2><s:property value="%{senderlist.get(#stat.index).SHOP_MAIL}"/></font>
			</td>
		</tr>
		</s:iterator>
		<table width=80% border=0 cellpadding="0" cellspacing="1">
		<tr>
			<td height=10>
			<td>
		</tr>
		<tr>
			<td height=10>
			<td>
		</tr>
		
		<tr>
			<td><b><font size=2>배송지 정보</font></b></td>
		</tr>
		
		<s:iterator value="senderlist" status="stat">
		
		<tr height=20>
			<td style="font-family: Tahoma; font-size: 8pt;" width=130 height=24
				bgcolor="f7f7f7">받는사람</td>
			<td style="font-family: Tahoma; font-size: 8pt;">
				<s:property value="%{senderlist.get(#stat.index).SHOP_NAME}"/>
			</td>
		</tr>
		
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
		<tr height=20>
			<td style="font-family: Tahoma; font-size: 8pt;" width=130 height=24
				bgcolor="f7f7f7">휴대폰</td>
			<td style="font-family: Tahoma; font-size: 8pt;">
				<s:property value="%{senderlist.get(#stat.index).SHOP_PHON}"/>
			</td>
		</tr>
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
		<tr height=20>
			<td style="font-family: Tahoma; font-size: 8pt;" width=130 height=24
				bgcolor="f7f7f7">배송지 우편번호</td>
			<td style="font-family: Tahoma; font-size: 8pt;">
				<s:property value="%{senderlist.get(#stat.index).SHOP_ZIPCODE}"/>
			</td>
		</tr>
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
		<tr height=20>
			<td style="font-family: Tahoma; font-size: 8pt;" width=130 height=24
				bgcolor="f7f7f7">배송지 주소</td>
			<td style="font-family: Tahoma; font-size: 8pt;">
				<s:property value="%{senderlist.get(#stat.index).SHOP_ADD01}"/></td>
		</tr>
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
		<tr height=20>
			<td style="font-family: Tahoma; font-size: 8pt;" width=130 height=24
				bgcolor="f7f7f7">배송지 나머지 주소</td>
			<td style="font-family: Tahoma; font-size: 8pt;">
			<s:property value="%{senderlist.get(#stat.index).SHOP_ADD02}"/>
			</td>
		</tr>
		</s:iterator>
		</tr>
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
	</table>
		
		<tr>
			<td style="background-color: #F0F0F0; height: 1px;" colspan=6>
		</tr>
		
		<tr>
			 <br/>
  <td align=center style="background-color: #F0F0F0; height: 1px;" colspan=6>
		
		<a href="./order/orderResult.jsp">결제하기</a>	
  
    </td>
		</tr>
		
		</table> 
	</s:form>
</body>
</html>